as well as building from mkpatch patch (I believe Rik hit that one).
This puts xenstore headers in linux-public.
Signed-off-by: Chris Wright <chrisw@osdl.org>
rm -f mkbuildtree
set ${RS}/../linux-2.6-xen-sparse
-[ "$1" == "${RS}/../linux-2.6-xen-parse" ] && { echo "no Linux 2.6 sparse tree at ${RS}/../linux-2.6-xen-sparse"; exit 1; }
+[ "$1" == "${RS}/../linux-2.6-xen-sparse" ] && { echo "no Linux 2.6 sparse tree at ${RS}/../linux-2.6-xen-sparse"; exit 1; }
LINUX_26="$1"
-
# Create links to the shared definitions of the Xen interfaces.
rm -rf ${AD}/include/asm-xen/xen-public
mkdir ${AD}/include/asm-xen/xen-public
xenbus-objs += xenbus_comms.o
xenbus-objs += xenbus_xs.o
xenbus-objs += xenbus_probe.o
-
-XEN_TOOLS_DIR := "../tools"
-vpath %.h $(XEN_TOOLS_DIR)
-EXTRA_CFLAGS += -I $(XEN_TOOLS_DIR)
#include <linux/errno.h>
#include <linux/types.h>
-#include "xenstore/xenstored.h"
#include <linux/uio.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/fcntl.h>
#include <linux/kthread.h>
#include <asm-xen/xenbus.h>
+#include "xenstored.h"
#include "xenbus_comms.h"
#define streq(a, b) (strcmp((a), (b)) == 0)
relative_lndir ${RS}
rm -f mkbuildtree
-
# Create links to the shared definitions of the Xen interfaces.
rm -rf ${AD}/include/asm-xen/xen-public
mkdir ${AD}/include/asm-xen/xen-public
cd ${AD}/include/asm-xen/xen-public
relative_lndir ../../../${RS}/../xen/include/public
+cd ${AD}/drivers/xen/xenbus
+ln -sf ../../../${RS}/../tools/xenstore/xenstored.h